package com.example.core.enums;

public enum UserStatus {

    BLACK   (0,"拉黑"),
    NORMAL  (1,"正常"),
    OTHER   (-1, "其他");

    int status;
    String desc;

    UserStatus(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static boolean checkStatus(int status) {
        return status >= BLACK.getStatus() && status <= NORMAL.getStatus();
    }
}
